Auto merge of #1148 - FlaPer87:change-home, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 11 Jan 2015 05:18:59 +0000 (05:18 +0000)
committerbors <bors@rust-lang.org>
Sun, 11 Jan 2015 05:18:59 +0000 (05:18 +0000)
commitcff6aadb5ee1eea987bc7461d364c1f426406d99
tree13fb412ab812791a1b01a1fd217a8c4ef04c54f8
parent027c815aeb5a8156f0e1c9000604ffc5a1053468
parentbef8095b2693c3411bf10b9ec647df26100da1eb
Auto merge of #1148 - FlaPer87:change-home, r=alexcrichton

Users changing cargo's home directory expect it to be used as top path
instead of there being a `.cargo` hidden dir in it. There are some cases
following this pattern one of them is python's virtualenvwrapper, which
uses `WORK_HOME` as a home dir for everything.

This patch removes the extra `.cargo` and assumes that CARGO_HOME is the
real path a user wants to use as a homedir for cargo.
src/cargo/util/config.rs
tests/test_cargo.rs